package com.business.Service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.business.Service.TestService;
import com.business.dao.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: TODO
 * @Author: mis_wu
 * @Date: 2022/7/5
 **/
@Service
public class TestServiceImpl implements TestService {

    @Autowired
    private TestMapper testMapper;

    @Override
    public String test(String name) {
        return testMapper.test(name);
    }
    @Override
    public String testDynamic(String name) {
        return testMapper.testDynamic(name);
    }

    @Override
    @DS("slave_wu1")
    public String testDynamicSlave1(String name) {
        return testMapper.testDynamicSlave1(name);
    }

}
